Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: emit events for api #31

Merged
merged 7 commits into from
Oct 25, 2024
Merged

feat: emit events for api #31

merged 7 commits into from
Oct 25, 2024

Conversation

gusin13
Copy link
Collaborator

@gusin13 gusin13 commented Oct 24, 2024

This pr sets up event emission from indexer in the queues that will be consumed by api

Notes

  1. i copied the staking queue client from https://github.com/babylonlabs-io/staking-queue-client/tree/main/client in this repo temporarily. this was needed b/c i had to add new schema for verified/pending etc.
  2. i only tested the events being pushed to queue and the consumer logic (api side) is not tested, so separate work will be needed on that side.
  3. i tried to use existing schema for active/unbonding but the data is not sufficient, for now i added placeholder but when we actually test this will need some fixes
Screenshot 2024-10-24 at 3 48 10 PM

@gusin13 gusin13 marked this pull request as ready for review October 24, 2024 20:39
@gusin13 gusin13 merged commit d20b628 into main Oct 25, 2024
11 checks passed
@gusin13 gusin13 deleted the gusin13/api-events branch October 25, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants